package com.khalil.kkadmin.module.ai.agent.chatsession;

import com.khalil.kkadmin.infrastructure.jpa.KkJpaRepository;

import java.util.List;

public interface ChatSessionRepository extends KkJpaRepository<ChatSession, Long> {

    List<ChatSession> findByUsernameAndApplicationIdOrderByCreatedAtDesc(String username, Long applicationId);
}
